home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Conversion / Convert_PICT / Testing / hex_tests / pat=set2=newcolor.hex < prev    next >
Text File  |  1992-12-05  |  3KB  |  90 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 0011 02FF                        % verson
  6. 0001 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 0030 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. %
  11. %    This test set seeks to demonstrate that more 'special' opcodes
  12. %    for bitmaps, polygons, regions, and thickly framed shapes work as
  13. %    they should with patterns.
  14. %    This test confirms that they work with basic B&W patterns & pict 2 style colors
  15. %
  16. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  17.  
  18. 0002 0008 142A 552A 1408        % back pat (grey diamonds)
  19. 0009 7789 8f8f 7798 f8f8            % pen pat (the black dimpled circles one)
  20. 000A 8244 3944 8201 0101        % fill pat
  21.  
  22. %
  23. %    Use new-style colors
  24. %
  25. 001A    0000 0000 FFFf    % background color (blue)
  26. 001B    FFFf FFFf 0000    %  foreground color (yellow)
  27.  
  28.  
  29. % paint a region
  30. 0081 0028 0090 0010 00F0 0070
  31.     0090 0040 0050 7FFF
  32.     00C0 0010 0070 7FFF
  33.     00F0 0010 0040   0050 0070 7FFF
  34.     7FFF
  35.  
  36.  
  37. % fill a hexagonal polygon
  38. 0074 0026 0080 0080 00F0 00F0
  39.     0080 00A0
  40.     0080 00D0
  41.     00C0 00F0
  42.     00F0 00D0
  43.     00F0 00A0
  44.     00C0 0080
  45.     0080 00A0
  46.  
  47.  
  48. % set a thick pen size
  49. 0007 0010 0008
  50.  
  51. % thickly Frame a rectangle
  52. 0030 0010 0080 0050 00D0
  53.  
  54.  
  55. % Include a bitmap, to confirm it is not affected
  56.  
  57. 0090
  58. 0004            % rowbytes
  59. 0000 0050 0018 0070    % bounds  (t l b r)
  60. 0000 0050 0018 0069    % source rect
  61. 0010 0020 0028 0039    % dest rect
  62. 0001        % mode
  63. 00 7F 00 00    % bit data (unpacked)
  64. 03 80 E0 00
  65. 06 00 30 00
  66. 08 00 08 00
  67. 10 00 04 00
  68. 20 00 02 00
  69. 60 00 03 00
  70. 40 00 01 00
  71. 40 00 81 00
  72. 80 03 80 80
  73. 83 00 00 80
  74. 80 00 00 80
  75. 80 00 00 80
  76. 80 00 30 80
  77. 80 00 20 80
  78. 40 00 21 00
  79. 40 00 C1 00
  80. 63 07 83 00
  81. 20 F8 02 00
  82. 10 00 04 00
  83. 08 00 08 00
  84. 06 00 30 00
  85. 03 80 E0 00
  86. 00 7F 00 00
  87.  
  88.  
  89. 00FF    % end
  90.